﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MolfMolfMolf
{
    public class CommentModel
    {
        private string _message;
        public string Message
        {
            get { return _message; }
            set
            {
                int i = value.IndexOf("It had my");
                int j = value.IndexOf(' ');
                _message = value.Substring(j + 1, value.Length - j - 1).Substring(0, i - j - 2);
                string rateString = value.Substring(i, value.Length - i);
                rateString = rateString.Split('/')[0];
                Rate = Convert.ToInt32(rateString[rateString.Length - 1].ToString());

            } 
        }

        public string User { get; set; }
        public string Pic { get; set; }
        public int Rate { get; set; }
    }
}
